package cn.itsource.wechat.domain;

import cn.itsource.basic.domain.BaseDomain;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

@Data //生成get set hashcode toString
@AllArgsConstructor //全参数构造
@NoArgsConstructor //无参构造
@Table(name = "t_wxuser")
@Api("微信用户对象")
public class WxUser extends BaseDomain {
    //每个用户的唯一标识
    private String openid;
    //昵称
    private String nickname;
    //性别
    private Integer sex;
    //地址
    private String address;
    //头像地址
    private String headimgurl;
    //没什么用
    private String unionid;
    //和t_user的主键进行关联
    private Long userId;

}
